package com.wolfstreet.wsonline.service.http;

import java.util.Observable;

/**
 * HTTP观察者
 * 
 * @author silence
 * @version [版本号, 2012-8-27]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class HttpObservable extends Observable {

	private static HttpObservable instance;

	private HttpObservable() {

	}

	public static HttpObservable getInstance() {
		if (instance == null) {
			instance = new HttpObservable();
		}
		return instance;
	}

	/**
	 * 通知HTTP 观察对象 <功能详细描述>
	 * 
	 * @param isList
	 * @see [类、类#方法、类#成员]
	 */
	public void noyifyHttp(int type) {
		setChanged();
		notifyObservers(type);
	}
}
